const routers = [
    {
        path: '/',
        meta: {
            title: '首页内容'
        },
        redirect:"/welcome"
    },
    {
        path: '/welcome',
        meta: {
            title: '欢迎页'
        },
        component: (resolve) => require(['./views/welcome.vue'], resolve)
    },
    {
        path: '/sign/list',
        meta: {
            title: '签到列表'
        },
        component: (resolve) => require(['./views/sign/list.vue'], resolve)
    },
    {
        path: '/sign/add',
        meta: {
            title: '测试签到'
        },
        component: (resolve) => require(['./views/sign/add.vue'], resolve)
    },
    {
        path: '/vote/add',
        meta: {
            title: '投票测试'
        },
        component: (resolve) => require(['./views/vote/add.vue'], resolve)
    },
    {
        path: '/vote/list',
        meta: {
            title: '投票结果'
        },
        component: (resolve) => require(['./views/vote/list.vue'], resolve)
    },
    {
        path: '/chat/list',
        meta: {
            title: '聊天记录'
        },
        component: (resolve) => require(['./views/chat/list.vue'], resolve)
    },    
    {
        path: '/chat/add',
        meta: {
            title: '聊天测试'
        },
        component: (resolve) => require(['./views/chat/add.vue'], resolve)
    },    
    {
        path: '/user/list',
        meta: {
            title: '用户列表'
        },
        component: (resolve) => require(['./views/user/list.vue'], resolve)
    },
    {
        path: '/user/add',
        meta: {
            title: '添加用户'
        },
        component: (resolve) => require(['./views/user/add.vue'], resolve)
    },
    {
        path: '/act/list',
        meta: {
            title: '节目列表'
        },
        component: (resolve) => require(['./views/act/list.vue'], resolve)
    },
    {
        path: '/act/add',
        meta: {
            title: '添加节目'
        },
        component: (resolve) => require(['./views/act/add.vue'], resolve)
    },
    {
        path: '/prize/list',
        meta: {
            title: '奖品列表'
        },
        component: (resolve) => require(['./views/prize/list.vue'], resolve)
    },
    {
        path: '/prize/add',
        meta: {
            title: '添加奖品'
        },
        component: (resolve) => require(['./views/prize/add.vue'], resolve)
    },
    {
        path: '/win/create',
        meta: {
            title: '抽奖测试'
        },
        component: (resolve) => require(['./views/win/add.vue'], resolve)
    },
    {
        path: '/win/list',
        meta: {
            title: '中奖列表'
        },
        component: (resolve) => require(['./views/win/list.vue'], resolve)
    },
    {
        path: '/win/search',
        meta: {
            title: '中奖查询'
        },
        component: (resolve) => require(['./views/win/search.vue'], resolve)
    }    
];
export default routers;